﻿@{
    Layout = null;
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta name="format-detection" content="telephone=no,email=no">
    <meta name="renderer" content="webkit" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <title>登录</title>
    <link rel="stylesheet" href="~/Content/vendor/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="~/Content/vendor/bootstrap/css/bootstrap-theme.min.css">
    <link rel="stylesheet" href="~/Content/css/c.css">
</head>
<body class="bg-gray white">
    <div class="container login">
        <div class="row">
            <div class="col-sm-5 col-sm-offset-3 text-center">
                <img src="~/Content/images/logo.png" alt="" style="width: 175px;">
                <h3 class="padding-10">储吉项目费用管理系统</h3>
            </div>
            <div class="col-sm-5 col-sm-offset-3">
                <form class="form-horizontal">
                    <div class="form-group">
                        <!--<label for="inputUser" class="col-sm-3 control-label">身份证</label>-->
                        <div class="col-sm-8 col-sm-offset-2">
                          <input type="email" class="form-control" id="inputUser" name="inputUser" placeholder="账号" value="administrator1">
                        </div>
                    </div>
                    <div class="form-group">
                        <!--<label for="inputPassword" class="col-sm-3 control-label">密码</label>-->
                        <div class="col-sm-8 col-sm-offset-2">
                            <input type="password" class="form-control" name="inputPassword" id="inputPassword" placeholder="密码" value="123456">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-8 col-sm-offset-2 checkbox">
                            <label for="rember" class="margin-0"><input type="checkbox" name="rember" id="rember" checked>记住我</label>
                            <a href="#" class="margin-left-10">忘记密码</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-8 col-sm-offset-2">
                            <button type="button" class="btn btn-default btn-block" id="login">登录</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <div id="alertInfo" class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
        <div class="modal-dialog modal-sm">
            <div class="modal-content padding-10">
                <div class="row">
                    <div class="col-sm-12 text-center">
                        <p id="alertText" class="margin-10 font-14"></p>
                    </div>
                    <div class="col-sm-12 text-center">
                        <button type="button" class="btn btn-primary margin-10" data-dismiss="modal">确定</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="~/Content/vendor/jquery/jquery.min.js"></script>
    <script src="~/Content/vendor/bootstrap/js/bootstrap.min.js"></script>
    <script src="~/Content/js/storageFn.js"></script>
    <script src="~/Content/js/login.js"></script>
    <script type="text/javascript">
        $('#login').click(function () {
            // 项目运营 王若楠 68de21df-68a1-43b7-b4e9-0957f599aa2c
            // 项目经理 胡跃辉 89ba252a-ef0b-40c5-8c23-c7551576c264
            // 老师 许素波 3fc552bc-a99f-4788-8b54-006a233a49a2

            var Account = $('#inputUser').val();
            var UserID = '';
            switch (Account) {
                case 'administrator':
                    UserID = '90ACAF8C-94B8-46F4-B4CB-B6070C284A34&PositionNameCN=项目总监';
                    break;
                case 'administrator1':
                    UserID = '89BA252A-EF0B-40C5-8C23-C7551576C264&PositionNameCN=项目经理';
                    break;
                case 'administrator2':
                    UserID = '68DE21DF-68A1-43B7-B4E9-0957F599AA2C&PositionNameCN=项目运营';
                    break;
                case 'administrator3':
                    UserID = '3FC552BC-A99F-4788-8B54-006A233A49A2&PositionNameCN=项目老师';
                    break;
                  default:
            }
            
            if (UserID) {
              location.href = 'Enter?UserID=' + UserID;
            }
            
        });
    </script>


</body>
</html>
